<?php

class Application_Model_DbTable_MembroSituacao extends Zend_Db_Table_Abstract
{
    protected $_name = 'membro_situacao';
    
    protected function _setupPrimaryKey() 
    { 
        $this->_primary = 'idmembro'; 
        parent::_setupPrimaryKey(); 
    } 
        
    public function getMembroSituacao ($id)
    {
        $id = (int) $id;
        $row = $this->fetchRow('idmembro = ' . $id);
        if (! $row) {
            throw new Exception("Could not find row $id");
        }
        return $row->toArray();
    }

}